<?php
/**
 * This class will generate the xhtml code for a textarea.
 *
 * @author Redouane Benkaddour <redouane@indago.nl>
 * @version 0.5.2
 * @package reform
 * @subpackage textarea_generator
 */
class textarea_generator extends general_components {
	
	/**
    * generates the xhtml code and returns the string
    *
    * @return string $code
    */
	protected function generateCode(){
		$code = '<textarea ';
		foreach($this->attribute AS $attribute => $value){
			if($attribute != 'value'){
				$code.= $attribute.'="'.$value.'" ';
			}
		}
		$code.= '>'.$this->attribute['value'];
		$code.= '</textarea>';
		return $code;
	}
}

?>